package io.renren.modules.store.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.renren.modules.store.entity.TStoreDiningTableEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author steakliu
 * @email 2319492349@qq.com
 * @date 2021-01-24 01:14:45
 */
@Mapper
public interface TStoreDiningTableDao extends BaseMapper<TStoreDiningTableEntity> {

    List<Integer> getSeatNumList(@Param("params") Map<String,Object> map);

    void splitDesk(@Param("params")Map<String, Object> map);

    TStoreDiningTableEntity getMaxNumberByPrefix(@Param("params") TStoreDiningTableEntity tableEntity);

    Page<TStoreDiningTableEntity> queryTables(Page<TStoreDiningTableEntity> page,@Param("params") Map<String, Object> params);
}
